import request from '@/utils/request_ry.js'

// 查询现场安全防护照片列表
export function listJySiteSafety(query) {
  return request({
    url: '/jy/jySiteSafety/list',
    method: 'get',
    params: query
  })
}

// 查询现场安全防护照片详细
export function getJySiteSafety(id) {
  return request({
    url: '/jy/jySiteSafety/' + id,
    method: 'get'
  })
}

// 新增现场安全防护照片
export function addJySiteSafety(data) {
  return request({
    url: '/jy/jySiteSafety',
    method: 'post',
    data: data,
	loading: true
  })
}

// 修改现场安全防护照片
export function updateJySiteSafety(data) {
  return request({
    url: '/jy/jySiteSafety',
    method: 'put',
    data: data,
	loading: true
  })
}

// 删除现场安全防护照片
export function delJySiteSafety(id) {
  return request({
    url: '/jy/jySiteSafety/' + id,
    method: 'delete'
  })
}
